home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Xt / XtOffset.z / XtOffset
Encoding:
Text File  |  2002-10-03  |  2.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXttttOOOOffffffffsssseeeetttt((((3333XXXXtttt))))      XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))       XXXXttttOOOOffffffffsssseeeetttt((((3333XXXXtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XtOffset, XtOffsetOf, XtNumber - determine the byte offset
  10.           or number of array elements
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           Cardinal XtOffset(_p_o_i_n_t_e_r__t_y_p_e, _f_i_e_l_d__n_a_m_e)
  14.                 Type _p_o_i_n_t_e_r__t_y_p_e;
  15.                 Field _f_i_e_l_d__n_a_m_e;
  16.  
  17.           Cardinal XtOffsetOf(_s_t_r_u_c_t_u_r_e__t_y_p_e, _f_i_e_l_d__n_a_m_e)
  18.                 Type _s_t_r_u_c_t_u_r_e__t_y_p_e;
  19.                 Field _f_i_e_l_d__n_a_m_e;
  20.  
  21.           Cardinal XtNumber(_a_r_r_a_y)
  22.                 ArrayVariable _a_r_r_a_y;
  23.  
  24.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  25.           _a_r_r_a_y     Specifies a fixed-size array.
  26.  
  27.           _f_i_e_l_d__n_a_m_e
  28.                     Specifies the name of the field for which to
  29.                     calculate the byte offset.
  30.  
  31.           _p_o_i_n_t_e_r__t_y_p_e
  32.                     Specifies a type that is declared as a pointer to
  33.                     the structure.
  34.  
  35.           _s_t_r_u_c_t_u_r_e__t_y_p_e
  36.                     Specifies a type that is declared as a structure.
  37.  
  38.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  39.           The _X_t_O_f_f_s_e_t macro is usually used to determine the offset
  40.           of various resource fields from the beginning of a widget
  41.           and can be used at compile time in static initializations.
  42.  
  43.           The _X_t_O_f_f_s_e_t_O_f macro expands to a constant expression that
  44.           gives the offset in bytes to the specified structure member
  45.           rom the beginning of the structure.  It is normally used to
  46.           statically initialize resource lists and is more portable
  47.           than _X_t_O_f_f_s_e_t, which serves the same function.
  48.  
  49.           The _X_t_N_u_m_b_e_r macro returns the number of elements in the
  50.           specified argument lists, resources lists, and other counted
  51.           arrays.
  52.  
  53.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  54.           XtGetResourceList(3Xt), XtSetArg(3Xt)
  55.           _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  56.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.